﻿package Interface
{
	import com.junkbyte.console.Cc;
	
	import flash.display.MovieClip;	
	import flash.events.MouseEvent;
	
	public class ArrowsMenu extends MovieClip 
	{
		protected var FLeft:ArrowButton;
		protected var FRight:ArrowButton;
		
		public function ArrowsMenu() 
		{
			FLeft = getChildByName('Left') as ArrowButton;
			FRight = getChildByName('Right') as ArrowButton;
			if(!FLeft || !FRight)
				Cc.log('Arrow menu incomplete')
			else
			{
				FLeft.addEventListener(MouseEvent.MOUSE_DOWN, OnLeft);
				FRight.addEventListener(MouseEvent.MOUSE_DOWN, OnRight);
			}			
		}
		
		protected function OnLeft(e:MouseEvent):void
		{
		}
		
		protected function OnRight(e:MouseEvent):void
		{
		}
	}	
}
